/**
 * Test JSON Request on MooTools 1.2
 *
 * @class		Ria_JsonRequest_Test
 * @requires	Ria_JsonRequest
 */
var Ria_JsonRequest_Test = new Class({
	
	Extends: Ria_JsonRequest,
	
	options: {
		target: 'main',
		event: 'test'
	},
	
	onGetResponse: function(jsonObj) {
		alert('Response "simpleVar" : ' + jsonObj.simpleVar);
		this.json = jsonObj;
		this.showResponse();
	},
	
	showResponse: function() {
		alert('Test Response: ' + JSON.encode(this.json));
	}
	
});
